Closed Mchapuis closed 6 years ago
@jashanj0tsingh -- please review PM1.3 portion of this PR -- comment on its description, diffs, etc. whether it adequately matches the spec; then test quickly a copy of it locally.
java.io.File
in the web service; all you need in your service wrapper is a byte array (file contents) and a string (filename). These two fields can grouped in a serializable class say ServiceFile
an that's what your WSDL methods return and the client side would adapt them back to an actual file, so you'd have an adapter class to help you with that in some util subpackage that both client and service could use.about d) Yes, when @mariegobran showed me the error I understood that I had made a mistake. I need to modify the wrapper like you described as soon as I can for the rest of the PM's to work correctly.
@jashanj0tsingh -- the project report and class diagram issues belong to the bb issues for now; no need for that part here in this repo. README, OpenESB, etc. are valid.
@jashanj0tsingh We are facing similar problems when opening/importing the project in OpenESB. We still don't know the correct way to do it.
@Mchapuis @jdesorm1 @mariegobran -- folks, this PR is about PM1 and its associated issues. For now please stop pushing PM2 stuff to your Datatsets
branch as anything you push there in your fork ends up in this PR until it's merged. Please separate PM2 stuff into PM2 branch (off the tip of Datasets
) and keep it there until it's time to submit. You can sync PM2 branch from Datasets from time to time but don't "litter" this PR else's it's going to delay further the review. Please move (git allows you to) the commits like a63bd6d, 433b2b3 to the PM2 branch in your fork.
The push @mariegobran and me did yesterday was for PM1, but we should have referenced PM1 for clarity, we will do this next time.
@jdesorm1 fixed his push so now Datasets
should be ok and contain only PM1 work.
I don't know what happened with the Datasets
branch but it seems like it has been rebase or something else happened. I am trying to fix this, we might have to revert and start over if I can't find the problem.
I need to create a new pull request with the correct changes. This branch should be deleted.
@Mchapuis -- I recommend against deleting the Datasets
branch in your fork since we still have upstream. Instead, once your PR #7 is merged, rebase (force) your Datasets
from us. And for the future really use branches like PM2
off the current tip of whatever branch you are working off from.
We made temporary fixes to be transform the Generator into a web service. Please review the WebService_README.txt file in /doc folder for details.
This version is still not working correctly because we are back to our original problem. When I did the wrapper for the Generator, I used the swing library and java.io.File to save files. I need to correct this because JAX-RPC is not using these.
The service class "ca.concordia.cse.gipsy.ws.soap.Generator" does not comply to one or more requirements of the JAX-RPC 1.1 specification, and may not deploy or function correctly. The method "getOutputFolder" on the service class "ca.concordia.cse.gipsy.ws.soap.Generator" uses a data type, "java.io.File", that is not supported by the JAX-RPC specification. Instances of the type may not serialize or deserialize correctly. Loss of data or complete failure of the Web service may result. The method "containsFile" on the service class "ca.concordia.cse.gipsy.ws.soap.Generator" uses a data type, "java.io.File", that is not supported by the JAX-RPC specification. Instances of the type may not serialize or deserialize correctly. Loss of data or complete failure of the Web
But the project is building correctly now.