Code: Select all
MathTableService port = service.getMathTableServicePort(new AddressingFeature(true));
AddressingFeature has a constructor with a boolean-value for enabling Addressing (see http://docs.oracle.com/javaee/6/api/jav ... ature.html)
Moderators: Site Manager, fjwalraven
Code: Select all
MathTableService port = service.getMathTableServicePort(new AddressingFeature(true));
The problem is with the injection of the WebService (@WebServiceRef), not with the code that you quoted.can you explain me why
Code:
MathTableService port = service.getMathTableServicePort(new AddressingFeature(true));
is wrong?
Regards,To define a reference whose type is a SEI. In this case, the type element MAY be present with its default value if the type of the reference can be inferred from the annotated field/method declaration, but the value element MUST always be present and refer to a generated service class type (a subtype of javax.xml.ws.Service).
Code: Select all
"getMathTableServicePort(...)"
Code: Select all
MathTableService port = service.getMathTableServicePort( new AddressingFeature() );
Code: Select all
MathTableImpl port = service.getMathTableImplPort( new AddressingFeature() );
Code: Select all
@WebServiceRef( MathTableImplService.class )
private MathTableService service;
Code: Select all
@WebServiceRef( MathTableImplService.class )
private MathTableImpl proxy;
Code: Select all
@WebServiceRef
private MathTableImpleService service;
Yes, you are correct: I have corrected the option!MathTableImpl port = service.getMathTableImplPort( new AddressingFeature() );
Good catch! there is a small error in the Problem statement:@WebServiceRef( MathTableImplService.class )
private MathTableService service;
Code: Select all
@Addressing(required=true)
@WebService
public class MathTableImpl implements MathTableService {
...
Code: Select all
@Addressing(required=true)
@WebService (endpointInterface="package.MathTableService")
public class MathTableImpl implements MathTableService {
...
Users browsing this forum: No registered users and 146 guests